<template>
	<div>
		<div class="title">周末去哪儿</div>
		<ul>
			<li class="item" v-for="item of list" :key="item.id">
				<div class="img-wrapper">
					<img class="item-img" :src="item.imgUrl">	
				</div>
				<div class="item-info">
					<p class="item-title">{{item.title}}</p>
					<p class="item-desc">{{item.desc}}</p>
				</div>
			</li>
		</ul>
	</div>
</template>

<script>
export default {
	name: 'HomeWeekend',
	props: {
		list: Array
	}
	// data () {
	// 	return {
	// 		weekendList: [{
	// 			id: '0001',
	// 			imgUrl: 'https://imgs.qunarzz.com/sight/source/1511/8f/bf3a40e4afcf29.jpg_r_640x214_90225212.jpg',
	// 			title: '泉心泉意',
	// 			desc: '这个冬天不干燥，养生养颜休闲一举两得，这里有厦门独特的温泉渡假旅游区'
	// 		}, {
	// 			id: '0002',
	// 			imgUrl: 'https://imgs.qunarzz.com/sight/source/1711/15/1cdd5ee885686b.jpg_r_640x214_46768064.jpg',
	// 			title: '厦门必打卡',
	// 			desc: '来厦门感受一把小资情调'
	// 		}, {
	// 			id: '0003',
	// 			imgUrl: 'https://imgs.qunarzz.com/sight/source/1505/b3/671f666cc7845a.jpg_r_640x214_f977f30c.jpg',
	// 			title: '帆船游艇出海',
	// 			desc: '乘风破浪，直挂云帆济沧海，今天真正感受这个场景，感受迎风，横风，顺风的航行'
	// 		}]
	// 	}
	// }
}
</script>

<style lang="stylus" scoped>
	@import '~styles/mixins.styl'
	.title
		line-height: .8rem
		background: #eee
		text-indent: .2rem
	.img-wrapper
		overflow: hidden
		height: 0
		padding-bottom: 37.09%
		.item-img
			width: 100%
	.item-info
		padding: .1rem
		min-width: 0
		.item-title
			line-height: .54rem
			font-size: .32rem
			ellipsis()
		.item-desc
			line-height .4rem
			color: #ccc
			ellipsis()
</style>
